package com.crl.redis;

/**
 * @autho 孔垂云
 * @date 2017/7/27.
 */
public class RedisKey {

    /**
     * 在线人数
     */
    //  public static final String ONLINE_USER = "CARS:ONLINE";
    /**
     * 短信验证码key
     */
    //public static final String USER_SMSCODE = "USER:SMSCODE";
    /**
     * 忘记密码短信验证码key
     */
    //   public static final String USER_SMSCODEFORGET = "USER:SMSCODEFORGET";
    /**
     * CRL redis键
     */
    public static final String CRL_BASE = "CRL:GATEWAY:";
    /**
     * 网关_appid_对应的 sfjy/yxrq/ip/uri
     */
    public static final String HGP_AUTHORIZED_URL = CRL_BASE + "APPID:";
    /**
     * 用户对应TOKEN
     */
    public static final String HGP_USER_ACCESSTOKEN = CRL_BASE + "XM:";


    /**
     * AUTHoRIZATION
     */
    public static final String AUTHORIZATION_KEY = CRL_BASE + "AUTHORIZATION:";

    /**
     * 如果存储appid的key
     */
    public static final String APPID_KEY = CRL_BASE + "APPID:";


    /**
     * 如果存储用户对应角色的key
     */
    public static final String USER_ROLES_KEY = CRL_BASE + "USERROLES:";

    /**
     * 如果存储角色对应的path的key
     */
    public static final String ROLE_PATHS_KEY = CRL_BASE + "ROLEPATHS:";


    /**
     * 如果appid对应的url
     */
    public static final String APPID_PATH_KEY = CRL_BASE + "APPIDPATHS:";


/**
 * 权限相关
 */
    /**
     * ACCESSTOKEN
     */
    public static final String AUTH_ACCESSTOKEN_KEY = CRL_BASE + "AUTH:ACCESSTOKEN:";
    /**
     * appid
     */
    public static final String AUTH_APPID_KEY = CRL_BASE + "AUTH:APPID:";

    /**
     * password
     */
    public static final String AUTH_PASSWORD_KEY = CRL_BASE + "AUTH_PASSWORD:";



    /**
     * 角色id对应的path
     */
    public static final String AUTH_ROLE_PATH = CRL_BASE + "AUTH_ROLE_PATH:";

}
